package com.baipiao.permission.backend.entity.sys;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_ONLY;

/**
 * <p>
 *
 * </p>
 *
 * @author Livi Luo
 * @since 2023-12-01
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("sys_permission")
@Schema(name = "SysPermissionEntity对象", description = "")
public class SysPermissionEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增id", accessMode = READ_ONLY)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "名称")
    @TableField("names")
    private String names;

    @Schema(description = "简介")
    @TableField("about")
    private String about;

    @Schema(description = "资源")
    @TableField("source")
    private String source;

    @Schema(description = "user.id")
    @TableField("create_by")
    private Integer createBy;

    @TableField(value = "create_date", fill = FieldFill.INSERT)
    private LocalDateTime createDate;


}
